#define _CRT_SECURE_NO_WARNINGS 1

#include "BinaryTree.h"

BTNode* BinaryTreeCreate(BTDataType x)
{
	BTNode* Node = (BTNode*)malloc(sizeof(BTNode));
	if (Node == NULL)
	{
		perror("malloc fail");
		exit(-1);
	}

	Node->left = NULL;
	Node->right = NULL;
	Node->val = x;

	return Node;
}


int main()
{
	BTNode* Node1 = BinaryTreeCreate(1);
	BTNode* Node2 = BinaryTreeCreate(2);
	BTNode* Node3 = BinaryTreeCreate(3);
	BTNode* Node4 = BinaryTreeCreate(4);
	BTNode* Node5 = BinaryTreeCreate(5);
	BTNode* Node6 = BinaryTreeCreate(6);
	BTNode* Node7 = BinaryTreeCreate(7);
	BTNode* Node8 = BinaryTreeCreate(8);




	return 0;
}